<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>jsp测试</title>
</head>
<body>
	欢迎你，现在的时间是：
	<%@ include file="date.jsp"%><br>
	<%
    HttpServletRequest req=(HttpServletRequest)pageContext.getRequest();
    String ip=req.getRemoteAddr();
    HttpSession session1=req.getSession();
    out.println("this session is:"+session1+"<br/>");
    out.println("this ip is:"+ip+"<br/>");
    %>
	<%
    pageContext.setAttribute("name", "江苏大学",pageContext.PAGE_SCOPE);
    Object name =pageContext.getAttribute("name",pageContext.PAGE_SCOPE);
    out.println("学校名称："+name);
    %>
</body>
</html>